package com.security.constant;

/**
 * @ClassName: Constants
 * @Author: ZhangYue26
 * @Description: 常量池
 * @Date: 2021-01-19
 */
public interface Constants {

    public enum Role{
        USER("USER","普通用户"),
        ADMIN("ADMIN","普通管理员"),
        SYSADMIN("SYSADMIN","高权限管理员"),
        SYSTEMADMIN("SYSTEMADMIN","系统管理员"),
        ROOT("ROOT","超级管理员");

        Role(String role,String description) {
            this.description = description;
            this.role = role;
        }
        public String description;
        public String role;

        public String getDescription() {
            return description;
        }

        public String getRole() {
            return role;
        }
    }

    public enum Path{
        INDEX("/index","首页"),
        CSS("/css/**","渲染文件夹"),
        BLOGS("/blogs/**","日志"),
        LOGIN("/login","登录页面"),
        USER("/user","用户界面"),
        EXCEPTION("/401","异常界面"),
        ERROR("/login-error","错误页面");

        Path(String path,String description) {
            this.description = description;
            this.path = path;
        }
        public String description;
        public String path;

        public String getDescription() {
            return description;
        }

        public String getPath() {
            return path;
        }
    }


}
